# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-applications
pkgname=alligator
pkgver=23.08.4
pkgrel=0
pkgdesc="A convergent RSS/Atom feed reader"
url="https://invent.kde.org/plasma-mobile/alligator/"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
license="GPL-2.0-only OR GPL-3.0-only"
depends="
	kirigami-addons
	kirigami2
	qt5-qtbase-sqlite
	"
makedepends="
	extra-cmake-modules
	kconfig5-dev
	kcoreaddons5-dev
	ki18n5-dev
	kirigami-addons-dev
	qt5-qtbase-dev
	qt5-qtquickcontrols2-dev
	samurai
	syndication5-dev
	"
_repo_url="https://invent.kde.org/network/alligator.git"
source="https://download.kde.org/stable/release-service/$pkgver/src/alligator-$pkgver.tar.xz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
735ff1e625b3813ff32077f81ab15ac91ba866b4cb98938c80cafde233663ed063798007b8a94feeb33556f93a637344df742e42b87515c5f8e4f56e0fad4e0b  alligator-23.08.4.tar.xz
"
